import axios from "axios";

axios.defaults.baseURL = "http://localhost:6301"

/**
 *
 * @param url
 * @param params
 */
export function doGet(url, params) {
    return axios.get(url, {
        params: params
    })
}

/**
 *
 * @param url
 * @param data
 */
export function doPost(url, data) {
    return axios.post(url, data)
}

export function doPut(url, data) {
    return axios.put(url, data)
}

export function doDelete(url, data) {
    return axios.delete(url, data)
}